package com.nervenets.general.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class KeyValue implements Serializable {
    @ApiModelProperty(value = "字段")
    public String key;
    @ApiModelProperty(value = "值")
    public Object value;

    public static KeyValue gen(String key, Object value) {
        return new KeyValue(key, value);
    }
}
